package com.boot3;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//默认启动类只会扫描当前类所在包及子包中的注解（组件）
//如果想要扫描其他包可以手动配置 不推荐
//@ComponentScan({"dao","com.boot3"})
public class Springboot03Application {

    public static void main(String[] args) {
        SpringApplication.run(Springboot03Application.class, args);
    }

}
